package kgc.crm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
    * 字段样式表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "kgc_crm_admin_field_style")
public class AdminFieldStyle {
    /**
     * 样式表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 字段宽度
     */
    @TableField(value = "style")
    private Integer style;

    /**
     * 字段类型 '1 线索 2 客户 3 联系人 4 产品 5 商机 6 合同 7回款 8公海'
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 字段名称
     */
    @TableField(value = "field_name")
    private String fieldName;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    public static final String COL_ID = "id";

    public static final String COL_STYLE = "style";

    public static final String COL_TYPE = "type";

    public static final String COL_FIELD_NAME = "field_name";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}